import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'index',
    component: index,
    meta:{
      title:'温榆河公园官网'
    }
  },
  { //景区资讯
    path: '/advisory',
    name: 'advisory',
    meta:{
      title:'景区资讯-温榆河公园'
    },
    component: () => import('@/views/advisory/index'),
  },
  { //咨讯详情
    path: '/advisory/details',
    name: 'advisoryDetails',
    meta:{
      title:'资讯详情-温榆河公园'
    },
    component: () => import('@/views/advisory/details')
  },
  { //图说景区
    path: '/picture',
    name: 'picture',
    meta:{
      title:'图说景区-温榆河公园'
    },
    component: () => import('@/views/picture/index')
  },
  { //图说景区列表
    path: '/picture/list',
    name: 'pictureList',
    meta:{
      title:'图说景区-列表-温榆河公园'
    },
    component: () => import('@/views/picture/list')
  },
  { //景区活动
    path: '/activity',
    name: 'activity',
    meta:{
      title:'景区活动-温榆河公园'
    },
    component: () => import('@/views/activity/index')
  },
  { //景区活动列表
    path: '/activity/list',
    name: 'activityList',
    meta:{
      title:'景区活动-列表-温榆河公园'
    },
    component: () => import('@/views/activity/list')
  },
  { //互动专区
    path: '/interactive',
    name: 'interactive',
    meta:{
      title:'互动专区-温榆河公园'
    },
    component: () => import('@/views/interactive/index.vue'),
  },
  { //互动专区列表
    path: '/interactive/list',
    name: 'interactiveList',
    meta:{
      title:'互动专区-列表-温榆河公园'
    },
    component: () => import('@/views/interactive/list.vue'),
  },
  { //客流提示及交通服务
    path: '/flowTraffic',
    name: 'flowTraffic',
    meta:{
      title:'客流提示及交通服务-温榆河公园'
    },
    component: () => import('@/views/flowTraffic/index.vue'),
  },
  { //客流提示及交通服务列表
    path: '/flowTraffic/list',
    name: 'flowTrafficList',
    meta:{
      title:'客流提示及交通服务-列表-温榆河公园'
    },
    component: () => import('@/views/flowTraffic/list.vue'),
  },
  {//游客服务及投诉管理
    path: '/consult',
    name: 'consult',
    component: () => import('@/views/consult/index.vue'),
  },
  { //搜索
    path: '/search',
    name: 'search',
    meta:{
      title:'搜索-温榆河公园'
    },
    component: () => import('@/views/search/index.vue'),
  },
  { //登录
    path: '/login',
    name: 'login',
    meta:{
      title:'登录-温榆河公园'
    },
    component: () => import('@/views/login/index')
  },
  { //找回密码
    path: '/recoverPassword',
    name: 'recoverPassword',
    meta:{
      title:'找回密码-温榆河公园'
    },
    component: () => import('@/views/login/recoverPassword')
  },
  { //注册
    path: '/registered',
    name: 'registered',
    meta:{
      title:'注册-温榆河公园'
    },
    component: () => import('@/views/login/registered')
  },
  { //个人中心咨询记录
    path: '/center',
    name: 'center',
    meta:{
      title:'个人中心-温榆河公园'
    },
    component: () => import('@/views/center/index'),
  },
  { //个人中心求助记录
    path: '/center/help',
    name: 'help',
    component: () => import('@/views/center/help')
  },
  { //个人中心投诉记录
    path: '/center/complaint',
    name: 'complaint',
    component: () => import('@/views/center/complaint')
  },
  { //视频展播列表
    path: '/videoList',
    name: 'videoList',
    component: () => import('@/views/video/index')
  }
]


const router = new VueRouter({
  mode: 'hash',
  routes
})

export default router